package com.yunxi.sys.pojo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2019-09-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Infomation对象", description="")
public class InfomationVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "信息主键")
    private String infoId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "消息内容")
    private String infoContent;

    @ApiModelProperty(value = "发布人员")
    private String sendPeople;

    @ApiModelProperty(value = "发布状态  0:未发布  1：发布")
    private Integer sendStatus;

    @ApiModelProperty(value = "发布时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private Date sendTime;

    @ApiModelProperty(value = "发布开始日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private Date sendStartDate;

    @ApiModelProperty(value = "发布结束日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private Date sendEndDate;

    @ApiModelProperty(value = "发起部门ID")
    private String sendOrg;

    @ApiModelProperty(value = "发起部门名字")
    private String sendOrgName;

    @ApiModelProperty(value = "渠道商编号(多个)")
    private String partnerCodes;

    @ApiModelProperty(value = "渠道商名称(多个)")
    private String partnerNames;

    @ApiModelProperty(value = "角色代码(多个)")
    private String roleCodes;

    @ApiModelProperty(value = "角色名称(多个)")
    private String roleNames;

    @ApiModelProperty(value = "消息级别")
    private Integer infoLevel;

    @ApiModelProperty(value = "创建时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    private String updateBy;

    @ApiModelProperty(value = "版本号")
    private Integer version;

    @ApiModelProperty(value = "信息编号")
    private String infoCode;

   @ApiModelProperty(value = "附件")
   private List<AttachVO> attachVOList = new ArrayList<>();


    private List<String> orgIdList =new ArrayList<>() ;
}
